<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>test api</title>
<link rel="stylesheet" type="text/css" href="../Finalove/resource/css/mint.css"/>
<script src="../Finalove/resource/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../Finalove/resource/js/vue.js" type="text/javascript" charset="utf-8"></script>
<script src="../Finalove/resource/js/mint.min.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css">
.response {text-align: center;font-family: "consolas";margin-top: 100px;}
</style>
</head>
<body>
	<div id="app">
		<p class="response">
			{{ response }}
		</p>
		<mt-cell title="备注" class="aaaa">
			<mt-field v-model="remark_name" placeholder="设置备注名称" class="mt-field-remark-name"></mt-field>
			<mt-button size="small" type="primary">确定</mt-button>
		</mt-cell>
	</div>
</body>
<script type="text/javascript">
var App = new Vue({
	el:"#app",
	data:{
		response:"",
		remark_name:"sdfasdfasdf"
	},
	mounted:function() {
		// this.init();
	},
	methods:{
		init() {
			var url = "https://www.finalove.top/api/";
			url += "friends/friendApply";
			var param = {
				api_key:"62c5d92eb4b174706dfe074b7942d382",
				params:{
					"from_id":15,
					"to_id":12,
					"remark":"123456",
					"user_id":15,
				}
			}
			$.post(url,param,function(res) {
				console.log(res);
				App.response = res;
			}); 
		}
	}
})
</script>
</html>
